import java.util.HashMap;
import java.util.Map;

import com.jfinal.kit.HttpKit;

public class Test {

	public static void main(String[] args) {

		String value = "{\"flag\":\"1\",\"value\":\"1920740\",\"create_time\":\"2016-06-08 10:08:01\",\"cache_name\":\"kpi_cache\",\"key\":\"100047-100009-0\"}";
		String content = HttpKit.post("http://121.42.173.39:18080/cache/put", value);
		System.out.println(content);

		Map map = new HashMap<String, String>();
		map.put("cache_name", "kpi_cache");
		map.put("key", "100047-100009-0");
		for (int i = 0; i < 1; i++) {
			long s = System.currentTimeMillis();
			String content0 = HttpKit.get("http://121.42.173.39:18080/cache/get", map);
			System.out.println(" & " + (System.currentTimeMillis() - s) + "ms &" + content0);
		}

	}
}
